<include file="public@header" />
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:url('list')}">{:lang('ADMIN_USER_INDEX')}</a></li>
        <li><a href="{:url('user/add')}">{:lang('ADMIN_USER_ADD')}</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="get" action="{:url('list')}">
        用户ID:
        <input type="text" class="form-control" name="id" style="width: 120px;" value="{:input('request.user_login/s','')}" placeholder="请输入{:lang('USERNAME')}">
        订单号:
        <input type="text" class="form-control" name="orderno" style="width: 120px;" value="{:input('request.user_email/s','')}" placeholder="请输入{:lang('EMAIL')}">
        <input type="submit" class="btn btn-primary" value="搜索" />
        <a class="btn btn-danger" href="{:url('list')}">清空</a>
    </form>
    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th width="50">ID</th>
            <th>{:lang('USERNAME')}</th>
            <th>{:lang('LAST_LOGIN_IP')}</th>
            <th>{:lang('LAST_LOGIN_TIME')}</th>
            <th>{:lang('EMAIL')}</th>
            <th>{:lang('STATUS')}</th>
            <th width="140">{:lang('ACTIONS')}</th>
        </tr>
        </thead>
        <tbody>
        <php>$user_statuses=array("0"=>lang('USER_STATUS_BLOCKED'),"1"=>lang('USER_STATUS_ACTIVATED'),"2"=>lang('USER_STATUS_UNVERIFIED'));</php>
        <foreach name="users" item="vo">
            <tr>
                <td>{$vo.id}</td>
                <td>{$vo.money}</td>
                <td>{$vo.user_id}</td>
                <td>
                    {$vo.orderno}
                </td>
                <td>{$vo.realmoney}</td>
                <td>
                    {$vo.realmoney}
                </td>
                <td>
                    {$vo.card}
                </td>
            </tr>
        </foreach>
        </tbody>
    </table>
    <div class="pagination">{$page}</div>

</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>